const express = require('express');
const fileController = require('../controllers/fileController');

const router = express.Router();
router.post('/upload', fileController.uploadFile);
router.get('/files', fileController.getFiles);
router.get('/directories', fileController.getDirectories);
router.get('/open-file', fileController.openFile);
router.get('/download', fileController.download);
router.post('/delete', fileController.deleteItem);
router.post('/create-folder', fileController.createFolder);
router.post('/upload', fileController.uploadFile);
router.all('/services/*', fileController.service);



module.exports = router;

